package com.ruoyi.flowable.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 表单草稿业务对象 flow_form_data_draft
 *
 * @author zxw
 * @date 2023-05-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DraftBo extends BaseEntity {

    /**
     * 草稿ID
     */
    private Long draftId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 事项ID
     */
    @NotNull(message = "事项ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long appId;

    /**
     * 保存数据
     */
    @NotBlank(message = "保存数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String submitData;


}
